/*  
* Copyright 2013-2020 Smartdot Technologies Co., Ltd. All rights reserved.  * SMARTDOT PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.  * 
*/ package com.ssm.zhou.dto;

import com.ssm.zhou.dto.enums.LoginRespEnum;

/** 
 * <p>  
 *   
 * @author <a href="mailto:zhoujb@smartdot.com.cn">周竞博</a>  * @version 1.0, 2020年5月30日 
 */
public class LoginRespDto {
	// 引入枚举类
	private LoginRespEnum loginRespEnum;
	private String respCode;
	private String respMsg;
	private LoginRespUser loginRespUser;
	
	public LoginRespUser getLoginRespUser() {
		return loginRespUser;
	}

	public void setLoginRespUser(LoginRespUser loginRespUser) {
		this.loginRespUser = loginRespUser;
	}

	public String getRespCode() {
		return respCode;
	}

	public void setRespCode(String respCode) {
		this.respCode = respCode;
	}

	public String getRespMsg() {
		return respMsg;
	}

	public void setRespMsg(String respMsg) {
		this.respMsg = respMsg;
	}

	public LoginRespEnum getLoginRespEnum() {
		return loginRespEnum;
	}

	public void setLoginRespEnum(LoginRespEnum loginRespEnum) {
		this.loginRespEnum = loginRespEnum;
	}

	@Override
	public String toString() {
		return "LoginRespDto [loginRespEnum=" + loginRespEnum + ", respCode=" + respCode + ", respMsg=" + respMsg
				+ ", loginRespUser=" + loginRespUser + "]";
	}

	public LoginRespDto(LoginRespEnum loginRespEnum,LoginRespUser loginRespUser) {
		this.loginRespEnum = loginRespEnum;
		this.respCode = loginRespEnum.getState();
		this.respMsg = loginRespEnum.getStateInfo();
		this.loginRespUser = loginRespUser;
	}	
}
 